<style type="text/css">
	ul{
		line-height: 40px;
		margin-left: 80px;
		background: lightgrey;
	}
	a{
		text-decoration: none;
	}
</style>
	<h1>{{question.question_text}}</h1>
	
	<form method="post" action="{% url 'polls:vote' question.id %}">
		{% csrf_token %}
		{% for choice in question.choice_set.all  %}
			<input type="radio" name="choice" value="{{choice.id}}" id="choice{{forloop.counter}}" />
			<label for="choice{{forloop.counter}}">{{choice.choice_text}}</label>
			<br />
		{% endfor %}
		<input type="submit" name="" value="投票">

	</form>
	{% if error %}
	<h3>{{error}}</h3>
	{% endif %}


<!-- {% if question%} -->
<!-- 	<ul>
	{% for choice in question.choice_set.all %}

		<li><a href="">{{choice.choice_text}}</a><input type="radio" name="vote"></li>

<a href="polls/{{question.id}}/"></a>
	{% endfor %}
		<input type="submit" name="" value="投票">
	</ul>
{% else %}
	<p>没有这个问题！！</p>
{% endif %} -->